ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Apple​Script Extensions

by idleberg ALL

AppleScript command completions, build system and useful snippets. Supports editing binary scripts

Details

Installs

  • Total 6K
  • Win 1K
  • Mac 4K
  • Linux 277
Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13
Windows 0 0 0 0 0 0 0 2 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 2 0 0 0 0 0 0 1 0
Mac 0 0 0 1 1 1 1 2 3 0 0 0 0 0 0 0 2 0 0 1 0 0 1 0 0 2 0 1 0 2 0 0 0 1 0 0 0 0 0 0 0 0 1 1 1
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
01234Apr 26Apr 23Apr 20Apr 17Apr 14Apr 11Apr 8Apr 5Apr 2Mar 30Mar 27Mar 24Mar 21Mar 18Mar 15Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 0Apr 24 Linux: 0 Mac: 0 Windows: 0Apr 23 Linux: 0 Mac: 1 Windows: 0Apr 22 Linux: 0 Mac: 1 Windows: 0Apr 21 Linux: 0 Mac: 1 Windows: 0Apr 20 Linux: 0 Mac: 1 Windows: 0Apr 19 Linux: 0 Mac: 2 Windows: 2Apr 18 Linux: 0 Mac: 3 Windows: 0Apr 17 Linux: 0 Mac: 0 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 0Apr 15 Linux: 0 Mac: 0 Windows: 1Apr 14 Linux: 0 Mac: 0 Windows: 1Apr 13 Linux: 0 Mac: 0 Windows: 0Apr 12 Linux: 0 Mac: 0 Windows: 1Apr 11 Linux: 0 Mac: 0 Windows: 0Apr 10 Linux: 0 Mac: 2 Windows: 0Apr 9 Linux: 0 Mac: 0 Windows: 0Apr 8 Linux: 0 Mac: 0 Windows: 0Apr 7 Linux: 0 Mac: 1 Windows: 0Apr 6 Linux: 0 Mac: 0 Windows: 0Apr 5 Linux: 0 Mac: 0 Windows: 0Apr 4 Linux: 0 Mac: 1 Windows: 0Apr 3 Linux: 0 Mac: 0 Windows: 0Apr 2 Linux: 0 Mac: 0 Windows: 0Apr 1 Linux: 0 Mac: 2 Windows: 0Mar 31 Linux: 0 Mac: 0 Windows: 0Mar 30 Linux: 0 Mac: 1 Windows: 0Mar 29 Linux: 0 Mac: 0 Windows: 0Mar 28 Linux: 0 Mac: 2 Windows: 0Mar 27 Linux: 0 Mac: 0 Windows: 0Mar 26 Linux: 0 Mac: 0 Windows: 0Mar 25 Linux: 0 Mac: 0 Windows: 1Mar 24 Linux: 0 Mac: 1 Windows: 0Mar 23 Linux: 0 Mac: 0 Windows: 0Mar 22 Linux: 0 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 0 Windows: 2Mar 20 Linux: 0 Mac: 0 Windows: 0Mar 19 Linux: 0 Mac: 0 Windows: 0Mar 18 Linux: 0 Mac: 0 Windows: 0Mar 17 Linux: 0 Mac: 0 Windows: 0Mar 16 Linux: 0 Mac: 0 Windows: 0Mar 15 Linux: 0 Mac: 1 Windows: 0Mar 14 Linux: 0 Mac: 1 Windows: 1Mar 13 Linux: 0 Mac: 1 Windows: 0Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 0Apr 24 Linux: 0 Mac: 0 Windows: 0Apr 23 Linux: 0 Mac: 1 Windows: 0Apr 22 Linux: 0 Mac: 1 Windows: 0Apr 21 Linux: 0 Mac: 1 Windows: 0Apr 20 Linux: 0 Mac: 1 Windows: 0Apr 19 Linux: 0 Mac: 2 Windows: 2Apr 18 Linux: 0 Mac: 3 Windows: 0Apr 17 Linux: 0 Mac: 0 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 0Apr 15 Linux: 0 Mac: 0 Windows: 1Apr 14 Linux: 0 Mac: 0 Windows: 1Apr 13 Linux: 0 Mac: 0 Windows: 0Apr 12 Linux: 0 Mac: 0 Windows: 1Apr 11 Linux: 0 Mac: 0 Windows: 0Apr 10 Linux: 0 Mac: 2 Windows: 0Apr 9 Linux: 0 Mac: 0 Windows: 0Apr 8 Linux: 0 Mac: 0 Windows: 0Apr 7 Linux: 0 Mac: 1 Windows: 0Apr 6 Linux: 0 Mac: 0 Windows: 0Apr 5 Linux: 0 Mac: 0 Windows: 0Apr 4 Linux: 0 Mac: 1 Windows: 0Apr 3 Linux: 0 Mac: 0 Windows: 0Apr 2 Linux: 0 Mac: 0 Windows: 0Apr 1 Linux: 0 Mac: 2 Windows: 0Mar 31 Linux: 0 Mac: 0 Windows: 0Mar 30 Linux: 0 Mac: 1 Windows: 0Mar 29 Linux: 0 Mac: 0 Windows: 0Mar 28 Linux: 0 Mac: 2 Windows: 0Mar 27 Linux: 0 Mac: 0 Windows: 0Mar 26 Linux: 0 Mac: 0 Windows: 0Mar 25 Linux: 0 Mac: 0 Windows: 1Mar 24 Linux: 0 Mac: 1 Windows: 0Mar 23 Linux: 0 Mac: 0 Windows: 0Mar 22 Linux: 0 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 0 Windows: 2Mar 20 Linux: 0 Mac: 0 Windows: 0Mar 19 Linux: 0 Mac: 0 Windows: 0Mar 18 Linux: 0 Mac: 0 Windows: 0Mar 17 Linux: 0 Mac: 0 Windows: 0Mar 16 Linux: 0 Mac: 0 Windows: 0Mar 15 Linux: 0 Mac: 1 Windows: 0Mar 14 Linux: 0 Mac: 1 Windows: 1Mar 13 Linux: 0 Mac: 1 Windows: 0Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 0Apr 24 Linux: 0 Mac: 0 Windows: 0Apr 23 Linux: 0 Mac: 1 Windows: 0Apr 22 Linux: 0 Mac: 1 Windows: 0Apr 21 Linux: 0 Mac: 1 Windows: 0Apr 20 Linux: 0 Mac: 1 Windows: 0Apr 19 Linux: 0 Mac: 2 Windows: 2Apr 18 Linux: 0 Mac: 3 Windows: 0Apr 17 Linux: 0 Mac: 0 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 0Apr 15 Linux: 0 Mac: 0 Windows: 1Apr 14 Linux: 0 Mac: 0 Windows: 1Apr 13 Linux: 0 Mac: 0 Windows: 0Apr 12 Linux: 0 Mac: 0 Windows: 1Apr 11 Linux: 0 Mac: 0 Windows: 0Apr 10 Linux: 0 Mac: 2 Windows: 0Apr 9 Linux: 0 Mac: 0 Windows: 0Apr 8 Linux: 0 Mac: 0 Windows: 0Apr 7 Linux: 0 Mac: 1 Windows: 0Apr 6 Linux: 0 Mac: 0 Windows: 0Apr 5 Linux: 0 Mac: 0 Windows: 0Apr 4 Linux: 0 Mac: 1 Windows: 0Apr 3 Linux: 0 Mac: 0 Windows: 0Apr 2 Linux: 0 Mac: 0 Windows: 0Apr 1 Linux: 0 Mac: 2 Windows: 0Mar 31 Linux: 0 Mac: 0 Windows: 0Mar 30 Linux: 0 Mac: 1 Windows: 0Mar 29 Linux: 0 Mac: 0 Windows: 0Mar 28 Linux: 0 Mac: 2 Windows: 0Mar 27 Linux: 0 Mac: 0 Windows: 0Mar 26 Linux: 0 Mac: 0 Windows: 0Mar 25 Linux: 0 Mac: 0 Windows: 1Mar 24 Linux: 0 Mac: 1 Windows: 0Mar 23 Linux: 0 Mac: 0 Windows: 0Mar 22 Linux: 0 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 0 Windows: 2Mar 20 Linux: 0 Mac: 0 Windows: 0Mar 19 Linux: 0 Mac: 0 Windows: 0Mar 18 Linux: 0 Mac: 0 Windows: 0Mar 17 Linux: 0 Mac: 0 Windows: 0Mar 16 Linux: 0 Mac: 0 Windows: 0Mar 15 Linux: 0 Mac: 1 Windows: 0Mar 14 Linux: 0 Mac: 1 Windows: 1Mar 13 Linux: 0 Mac: 1 Windows: 0

Readme

Source
raw.​githubusercontent.​com

AppleScript Extensions for Sublime Text

License Version Package Control

This Sublime Text package adds completions, snippets and build tools for AppleScript (including binary files) and JavaScript for Automation (JXA).

Screenshot

Screenshot of AppleScript in Sublime Text with Hopscotch color scheme

Installation

Package Control

  1. Make sure you already have Package Control installed
  2. Choose “*Install Package*” from the Command Palette (Super+Shift+p)
  3. Select “*AppleScript Extensions*”” and press Enter

Using Git

  1. Change to your Sublime Text Packages directory
  2. Clone repository git clone https://github.com/idleberg/sublime-applescript.git 'AppleScript Extensions'

Manual installation

  1. Download the latest stable release
  2. Unzip the archive to your Sublime Text Packages directory

Usage

Completions

Many commands can simply be triggered by completing a standard AppleScript command. Commands such as try, if, repeat, or set will create a code block. Press Tab to jump between input-fields.

Snippets

There are several snippets included to generate license-texts enclosed in a comment. To trigger these, try the license command with license names as parameter. You could, for example, use license:mit to add an MIT License text, or license:gpl2 for the GNU General Public License in version 2.0. Press Tab to jump between input-fields.

You can directly address several macOS applications to have them perform some action. For instance you can scaffold a script using Mail:Send message, telling Mail to send a message. You can use Tab to jump between recipient, subject and message fields. Other examples would be System Preferences:Security to open the according panel in System Preferences, or iTunes:Open file to play a piece of music in iTunes.

More examples:

  • Calendar:Add event
  • Finder:Open location
  • OS:Notification Message
  • Safari:Open location
  • Terminal:Run shell script

Build System

Build systems are available on macOS to compile or run scripts. Use the default shortcut +B to build or Shift++B to select a build system variant.

Note: When editing binary AppleScripts decompiled by this package, you can simply save the file for it to be re-compiled. Building it will lead to undesired results.

License

This work is licensed under the The MIT License.